import layoutHeaderAside from '@/layout'
import { request } from '@/api/service'

const meta = {auth: true}

export default {
    path: '/water',
    name: 'water',
    meta,
    redirect: {name: 'water-realTimeData'},
    component: layoutHeaderAside,
    children: (pre => [
        // {
        //     path: 'index',
        //     name: `${pre}index`,
        //     redirect: {name: 'home'},
        //     component: () => import('@/views/water/home'),
        //     meta: {
        //         ...meta,
        //         title: '首页',
        //         img: require('@/assets/pollution/首页.png'),
        //         isMenu: true
        //     }
        // },
        /*{
            path: 'equipment',
            name: `${pre}equipment`,
            component: () => import('@/views/water/equipment'),
            meta: {
                ...meta,
                title: '监测设备入库',
                img: require('@/assets/pollution/监测设备入库.png'),
                isMenu: true
            }
        },*/
        {
            path: 'exhaust1',
            name: `${pre}exhaust1`,
            component: () => import('@/views/water/exhaust/index'),
            meta: {
                ...meta,
                title: '水站站点查询',
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        },
        /* {
            path: 'exhaust',
            name: `${pre}exhaust`,
            component: () => import('@/views/water/exhaust/map'),
            meta: {
                ...meta,
                title: '水质查询',
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        }, */
        {
            path: 'realTimeData',
            name: `${pre}realTimeData`,
            component: () => import('@/views/water/realTimeData'),
            meta: {
                ...meta,
                title: '实时监测数据',
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'watermonitor',
            name: `${pre}watermonitor`,
            component: () => import('@/views/water/WaterMonitor'),
            meta: {
                ...meta,
                title: '水站实时监测',
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'historydata',
            name: `${pre}historydata`,
            component: () => import('@/views/water/historyData'),
            meta: {
                ...meta,
                title: '历史监测数据',
                img: require('@/assets/pollution/烟气设备信息.png'),
                isMenu: true
            }
        },
        {
            path: "abnormale",
            name: `${pre}abnormale`,
            component: () => import("@/views/water/WaterAbnormal"),
            meta: {
                ...meta,
                title: "监测异常数据",
                img: require("@/assets/pollution/实时监测数据.png"),
                isMenu: true
            }
        },
        // {
        //     path: 'equipmentInfo',
        //     name: `${pre}equipmentInfo`,
        //     component: () => import('@/views/water/equipmentInfo'),
        //     meta: {
        //         ...meta,
        //         title: '监测站点管理',
        //         img: require('@/assets/pollution/烟气设备信息.png'),
        //         isMenu: true
        //     }
        // },
        {
            path: 'equipmentRealTimeData',
            name: `${pre}equipmentRealTimeData`,
            component: () => import('@/views/water/equipmentRealTimeData'),
            meta: {
                ...meta,
                title: '监测站点视频',
                img: require('@/assets/pollution/烟气实时视频.png'),
                isMenu: true
            }
        },
        {
            path:'enterprise',
            name:`${pre}enterprise`,
            component:()=>import('@/views/water/Enterprise'),
            meta:{
                ...meta,
                title:"企业信息查询",
                img:require('@/assets/public/石化企业运维.png'),
                isMenu:true
            }
        },
        {
            path:"control",
            name:`${pre}control`,
            component:()=>import("@/views/water/Control"),
            meta: {
                ...meta,
                title: "仪器动态管控",
                img: require("@/assets/public/石化企业运维.png"),
                isMenu: true
            }
        },
        {
            path: "pmeterhistory",
            name:`${pre}pmeterhistory`,
            component:()=>import("@/views/water/PmeterHistory"),
            meta: {
                ...meta,
                title: "仪器修改历史",
                img: require("@/assets/public/石化企业运维.png"),
                isMenu: true
            }
        }
    ])('water-')
}
